x86/microcode: Check whether the microcode is correct
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 27 Sep 2013 08:25:08 +0000 (10:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2013 08:25:08 +0000 (10:25 +0200)
commit4deea8515b1caba8803816399068f2a75d65f8ad
tree4f5c14cfe242d67ef6b0cfc6bf234763bdf72154
parent155587481e392e4261038364e2761aab27f597ed
x86/microcode: Check whether the microcode is correct

We do the microcode code update in two steps - the presmp:
'microcode_presmp_init' and when CPUs are brought up: 'microcode_init'.
The earlier performs the microcode update on the BSP - but
unfortunately it does not check whether the update failed. Which means
that we might try later to update a incorrect payload on the rest of
CPUs.

This patch handles this odd situation.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/microcode.c